//
//  RequestConstants.h
//  TYEJ
//
//  Created by CC on 2019/11/18.
//  Copyright © 2019 CC. All rights reserved.
//

#import <Foundation/Foundation.h>

/*****
 basekey
 */
#define BASE_RESULT_KEY          @"result"
#define BASE_RESULT_RETCODE_KEY  @"retCode"
#define BASE_RESULT_MESSAGE_KEY  @"message"
#define BASE_RESULT_DATA_KEY     @"data"
#define BASE_RESULT_SUCCESS_CODE 0


#define REQUEST_HEADER_SCREEN    @"screen"
#define REQUEST_HEADER_PLATFORM  @"platform"
#define REQUEST_HEADER_UDID      @"udid"
#define REQUEST_HEADER_VERSION   @"version"
#define REQUEST_HEADER_MODEL     @"model"
#define REQUEST_HEADER_CARRIER   @"carrier"
#define REQUEST_HEADER_TOKEN     @"token"
#define REQUEST_HEADER_SESSIONID @"sessionId"
#define REQUEST_HEADER_USERTYPE  @"utype"
#define REQUEST_HEADER_ETAG      @"If-None-Match"
#define REQUEST_HEADER_LANGUAGE  @"language"
#define REQUEST_HEADER_TIMEZONE  @"timeZone"

#define RESPONSE_HEADER_ETAG     @"Etag"


/*****
 ErrorCode
 */
#define HTTP_CODE_NOTMODIFIED    304

// 未登录
#define HTTP_CODE_UNLOGIN        10001

/*****
 DOMAIN
 */

extern NSString* const APP_URIHOST;

extern NSString* const APP_URISCHEME;


#pragma mark - Login
extern NSString* const USER_ONCE_LOGIN;
extern NSString* const USER_VERIFY;
extern NSString* const USER_LOGIN;

#pragma mark - Feed
extern NSString* const ACTIVITY_USER_LIST;

#pragma mark - ChanYe

#pragma mark - Meeting


#pragma mark - OSS
extern NSString* const TY_ALIYUN_OSS;

@interface RequestConstants : NSObject

@end


@interface NSString (Article)
- (NSString*)articleUrl;
@end
